﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

using Furion.Logging;

namespace Abc.Utils;

/// <summary>
///     ES Furion log 实体对象
/// </summary>
public class EsFurionLoggingModel
{
    /// <summary>
    ///     日志名称
    /// </summary>
    public string logName { get; set; }


    /// <summary>
    ///     消息
    /// </summary>
    public string message { get; set; }

    /// <summary>
    ///     线程ID
    /// </summary>
    public int threadId { get; set; }

    /// <summary>
    ///     是否使用UTC时间
    /// </summary>
    public bool useUtcTimestamp { get; set; }

    /// <summary>
    ///     跟踪ID
    /// </summary>
    public string traceId { get; set; }


    /// <summary>
    ///     日志级别
    /// </summary>
    public LogLevel LogLevel { get; }

    /// <summary>
    ///     事件 Id
    /// </summary>
    public EventId EventId { get; }

    /// <summary>
    ///     当前状态值
    /// </summary>
    /// <remarks>可以是任意类型</remarks>
    public object State { get; }

    /// <summary>
    ///     日志上下文
    /// </summary>
    public LogContext Context { get; set; }

    /// <summary>
    ///     日志记录时间
    /// </summary>
    public DateTime LogDateTime { get; }

    #region

    ///// <summary>
    ///// 日志等级
    ///// </summary>
    ///// <see cref="LogLevel"/>
    //public string logLevel { get; set; }
    ///// <summary>
    ///// 事件ID
    ///// </summary>
    ///// <see cref="EventId"/>
    //public string eventId { get; set; }

    ///// <summary>
    ///// 异常
    ///// </summary>
    ///// <see cref="Exception"/>
    //public string exception { get; set; }
    ///// <summary>
    ///// 上下文
    ///// </summary>
    ///// <see cref="LogContext"/>
    //public string context { get; set; }

    ///// <summary>
    ///// 状态
    ///// </summary>
    //public string state { get; set; }
    ///// <summary>
    ///// 日期时间
    ///// </summary
    ///// <see cref="DateTime"/>
    //public string logDateTime { get; set; }

    #endregion
}